
public abstract class Animal {

	//var
	String name;
	boolean isAlive;
	int age;
	int size;
	boolean isHungry;
	
	
	//con
	public Animal(boolean isAlive, int age, int size, boolean isHungry) {
		
		this.name = "Hello";
		this.isAlive = isAlive;
		this.age = age;
		this.size = size;
		this.isHungry = isHungry;
		
		
	}
	
	
	
	//meth
	public boolean truckKill() {
		isAlive = false;
		return isAlive;
	}
	
	
	
	public int grow() {
		age += 1;
		size += 1;
		return age;
	}
	
	
	
	public boolean feed() {
		isHungry = false;
		return isHungry;
	}



	@Override
	public String toString() {
		return  name + " , " + isAlive + " , " + age
				+ " , " + size + " , " + isHungry + ".";
	}
	
	
	
	
	
	
	
		
}
